package cn.iocoder.yudao.module.of.enums;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author wyl
 * @date 2025/4/16
 * @des
 */
@Getter
@AllArgsConstructor
public enum ApprovalStatusEnum implements ArrayValuable<Integer> {

    PENDING(1, "待审批（审批中）"),
    PASS(2, "审批通过"),
    NOT_PASS(3, "审批不通过");

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(ApprovalStatusEnum::getStatus).toArray(Integer[]::new);

    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }
}
